package demo.student;

import java.io.Serializable;

public class Student implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer num;
    private Integer yuwen;
    private Integer yingyum;
    private Integer shuxue;
    private Integer score;

    public Student() {
    }

    public Student(Integer num, Integer yuwen, Integer yingyum, Integer shuxue) {
        this.num = num + 210500;
        this.yuwen = yuwen;
        this.yingyum = yingyum;
        this.shuxue = shuxue;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getYuwen() {
        return yuwen;
    }

    public void setYuwen(Integer yuwen) {
        this.yuwen = yuwen;
    }

    public Integer getYingyum() {
        return yingyum;
    }

    public void setYingyum(Integer yingyum) {
        this.yingyum = yingyum;
    }

    public Integer getShuxue() {
        return shuxue;
    }

    public void setShuxue(Integer shuxue) {
        this.shuxue = shuxue;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "num=" + num +
                ", yuwen=" + yuwen +
                ", yingyum=" + yingyum +
                ", shuxue=" + shuxue +
                ", score=" + score +
                '}';
    }
}
